<?php
    @session_start();
    
    
    include_once '../../Model/M_FormularioPorRol.php';
    $pagina = $_REQUEST['idPag'];
    $idUsuario = $_SESSION['id_usuario'];
    $fxr = new M_FormularioPorRol();
    $fxr->setidUsuario($idUsuario);
    $fxr->setId_Pagina($pagina);
    $listaPrivilegios = $fxr->searchVis_FormularioRol_Uno();
    $flag_nuevo = 0;
    $flag_modif = 0;
    $flag_elim = 0;
    for($i=0;$i<(count($listaPrivilegios));$i++)
    {
        if($listaPrivilegios[$i]['formulario']=='Registrar')
        {
            $flag_nuevo = 1;
        }
        if($listaPrivilegios[$i]['formulario']=='Modificar')
        {
            $flag_modif = 1;
        }
        if($listaPrivilegios[$i]['formulario']=='Eliminar')
        {
            $flag_elim = 1;
        }
    }
    
    
    
    
?>
<!DOCTYPE html>
<html>
    <head>
        <title>Mantenimiento Rol</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        
        <script src="../media/js/jquery.js" type="text/javascript"></script>
        <script src="../media/js/jquery.dataTables.js" type="text/javascript"></script>
        
        <style type="text/css">
            @import "../media/css/demo_table_jui.css";
            @import "../media/themes/smoothness/jquery-ui-1.8.4.custom.css";
            @import "../css/formularios.css";
        </style>
        
        <style>
            
            *{
                font-family: arial;
                font-size: 8;
            }
        </style>
        <script type="text/javascript" charset="utf-8">
            $(document).ready(function(){
                $('#datatables').dataTable({
                    "sPaginationType":"full_numbers",
                    "aaSorting":[[0, "asc"]],
                    "bJQueryUI":true,
                    "oLanguage": {
                        "sLengthMenu": "Mostrar _MENU_ Registros",
                        "sZeroRecords": "No se encontraron registros",
                        "sInfo": "Mostrando _START_ de _TOTAL_ registros",
                        "sInfoEmpty": "Showing 0 to 0 of 0 records",
                        "sInfoFiltered": "(Filtrado de _MAX_ registros totales)",
                        "sSearch": "Buscar:",
                        "oPaginate": {
                            "sFirst": "Primero", "sLast": "Último",  "sNext": "Siguiente", "sPrevious": "Anterior"
                        }
                    }
                });
            })
            
        </script>
        <script LANGUAGE="JavaScript">
            function confirmSubmit()
            {
                var agree = confirm("¿Desea realmente ELIMINAR este registro?");
                if (agree)
                    return true;
                else
                    return false;
            }
            // -->
        </script>
        
    </head>
    <body>
        <div style="text-align: center">
            zona: <select><option>1</option><option>2</option></select>
        </div>
        <br>
        <div>
            <table border="0" align="center">
                <tr align="center">
                    <td><img src="../images/mesa.JPG" /></td>
                    <td><img src="../images/mueble1.JPG" width="100" height="80"/></td>
                    <td></td>
                    <td><img src="../images/decoracion.jpg" width="90" height="60"/></td>
                </tr>
                <tr align="center">
                    <td><img src="../images/decoracion.jpg" width="90" height="60"/></td>
                    <td><img src="../images/mesa.JPG" /></td>
                    <td><img src="../images/mueble2.JPG" width="100" height="80"/></td>
                    <td><img src="../images/mesa.JPG" /></td>
                </tr>
                <tr align="center">
                    <td><img src="../images/mesa.JPG" /></td>
                    <td></td>
                    <td></td>
                    <td><img src="../images/decoracion.jpg" width="90" height="60"/></td>
                </tr>
            </table>
        </div>
    </body>
</html>